import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
interface Par extends Event {
	// tslint:disable-next-line: semicolon
	page_no: number
}
export default async function a009(fd: IFeidaoAiBrowserComponent, e: Par) {
	// todo

	const staff_name = fd.data.node.querySelector<HTMLInputElement>('[data-id="staff_name"]').value;
	const res = await nodejs<{ res: Array<{}>; s: Array<{}> }>('meeting-management/zj-000007/s002', {
		staff_name,
		pn: e.page_no
	});
	render(fd, res.res, p001, 'p001', 'inner');
}
